﻿using TinyFrameWork;
/// <summary>
/// 带标题和图片的一句话弹框
/// 牛万葆-2016年6月3日 11:24:53
/// </summary>
public class UIMessageBoxLabelIcon : UIMessageBoxLabelTitle {
    private const string ICON_SPRITE = "Icon_Sprite";
    private const string INFO_LABEL = "Info_Label";
    private UISprite iconSprite;
    private UILabel infoLabel;
    public UISprite IconSprite
    {
        get
        {
            if(iconSprite == null)
                iconSprite = GameUtility.FindDeepChild<UISprite>(this.gameObject, ICON_SPRITE);
            return iconSprite;
        }
    }
    public UILabel InfoLabel
    {
        get
        {
            if (infoLabel == null)
                infoLabel = GameUtility.FindDeepChild<UILabel>(this.gameObject, INFO_LABEL);
            return infoLabel;
        }
    }
}
